package com.sdruixinggroup.mondayb2b.models;

import java.io.Serializable;
import java.util.List;

/**
 * Created by 00029935 on 2017/12/8.
 */

public class OrderInfor implements Serializable{


    /**
     * err_code : 0
     * err_msg : OK
     * timestamp : 1515154832
     * order : {"address":{"address_id":88,"consignee":"xcd","phone":"18205275181","province_id":9,"city_id":27,"county_id":48,"street":"774","is_default":0,"province_name":"上海市","city_name":"市辖区","county_name":"黄浦区"},"merchant":{"merchant_id":56,"thumb":"http://oyu6ee76y.bkt.clouddn.com/590cf27b1b0426da164a5a1782ed776c.jpg","name":"安卓一级02"},"id":576,"status":5,"status_name":"待评价","order_sn":"20180103162102502064","order_group_id":696,"member_id":86,"merchant_id":56,"shopkeeper_id":84,"coupon_id":0,"payment_id":696,"pay_status":1,"goods_count":2,"total_money":0.02,"payment_type":6,"payment_type_name":"农资贷","coupon_free_money":0,"promotion_free_money":0,"total_free_money":0,"pay_money":0.02,"pay_time":"2018-01-03 16:21:20","created_time":"2018-01-03 16:23:34","order_goods":[{"commented":0,"order_goods_id":590,"goods_id":41,"quantity":2,"price":0.01,"goods_name":"安卓一级其他商品1","goods_pic":"http://oyu6ee76y.bkt.clouddn.com/d344d80afee3f886c5920df89c637e4b.jpg","total_money":0.02}]}
     */

    private int err_code;
    private String err_msg;
    private int timestamp;
    private OrderBean order;

    public int getErr_code() {
        return err_code;
    }

    public void setErr_code(int err_code) {
        this.err_code = err_code;
    }

    public String getErr_msg() {
        return err_msg;
    }

    public void setErr_msg(String err_msg) {
        this.err_msg = err_msg;
    }

    public int getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(int timestamp) {
        this.timestamp = timestamp;
    }

    public OrderBean getOrder() {
        return order;
    }

    public void setOrder(OrderBean order) {
        this.order = order;
    }

    public static class OrderBean implements Serializable{
        /**
         * address : {"address_id":88,"consignee":"xcd","phone":"18205275181","province_id":9,"city_id":27,"county_id":48,"street":"774","is_default":0,"province_name":"上海市","city_name":"市辖区","county_name":"黄浦区"}
         * merchant : {"merchant_id":56,"thumb":"http://oyu6ee76y.bkt.clouddn.com/590cf27b1b0426da164a5a1782ed776c.jpg","name":"安卓一级02"}
         * id : 576
         * status : 5
         * status_name : 待评价
         * order_sn : 20180103162102502064
         * order_group_id : 696
         * member_id : 86
         * merchant_id : 56
         * shopkeeper_id : 84
         * coupon_id : 0
         * payment_id : 696
         * pay_status : 1
         * goods_count : 2
         * total_money : 0.02
         * payment_type : 6
         * payment_type_name : 农资贷
         * coupon_free_money : 0.0
         * promotion_free_money : 0.0
         * total_free_money : 0.0
         * pay_money : 0.02
         * pay_time : 2018-01-03 16:21:20
         * created_time : 2018-01-03 16:23:34
         * order_goods : [{"commented":0,"order_goods_id":590,"goods_id":41,"quantity":2,"price":0.01,"goods_name":"安卓一级其他商品1","goods_pic":"http://oyu6ee76y.bkt.clouddn.com/d344d80afee3f886c5920df89c637e4b.jpg","total_money":0.02}]
         */

        private AddressBean address;
        private MerchantBean merchant;
        public RemittanceBeen remittance;
        private int id;
        private int status;
        private String status_name;
        private String order_sn;
        private int order_group_id;
        private int member_id;
        private int merchant_id;
        private int shopkeeper_id;
        private int coupon_id;
        private int payment_id;
        private int pay_status;
        private int goods_count;
        private float total_money;
        private int payment_type;
        private String payment_type_name;
        private double coupon_free_money;
        private double promotion_free_money;
        private double total_free_money;
        private double pay_money;
        private String pay_time;
        private String created_time;
        private List<OrderGoodsBean> order_goods;
        public   LoanBeen loan;



        public AddressBean getAddress() {
            return address;
        }

        public void setAddress(AddressBean address) {
            this.address = address;
        }

        public MerchantBean getMerchant() {
            return merchant;
        }

        public void setMerchant(MerchantBean merchant) {
            this.merchant = merchant;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public String getStatus_name() {
            return status_name;
        }

        public void setStatus_name(String status_name) {
            this.status_name = status_name;
        }

        public String getOrder_sn() {
            return order_sn;
        }

        public void setOrder_sn(String order_sn) {
            this.order_sn = order_sn;
        }

        public int getOrder_group_id() {
            return order_group_id;
        }

        public void setOrder_group_id(int order_group_id) {
            this.order_group_id = order_group_id;
        }

        public int getMember_id() {
            return member_id;
        }

        public void setMember_id(int member_id) {
            this.member_id = member_id;
        }

        public int getMerchant_id() {
            return merchant_id;
        }

        public void setMerchant_id(int merchant_id) {
            this.merchant_id = merchant_id;
        }

        public int getShopkeeper_id() {
            return shopkeeper_id;
        }

        public void setShopkeeper_id(int shopkeeper_id) {
            this.shopkeeper_id = shopkeeper_id;
        }

        public int getCoupon_id() {
            return coupon_id;
        }

        public void setCoupon_id(int coupon_id) {
            this.coupon_id = coupon_id;
        }

        public int getPayment_id() {
            return payment_id;
        }

        public void setPayment_id(int payment_id) {
            this.payment_id = payment_id;
        }

        public int getPay_status() {
            return pay_status;
        }

        public void setPay_status(int pay_status) {
            this.pay_status = pay_status;
        }

        public int getGoods_count() {
            return goods_count;
        }

        public void setGoods_count(int goods_count) {
            this.goods_count = goods_count;
        }

        public float getTotal_money() {
            return total_money;
        }

        public void setTotal_money(float total_money) {
            this.total_money = total_money;
        }

        public int getPayment_type() {
            return payment_type;
        }

        public void setPayment_type(int payment_type) {
            this.payment_type = payment_type;
        }

        public String getPayment_type_name() {
            return payment_type_name;
        }

        public void setPayment_type_name(String payment_type_name) {
            this.payment_type_name = payment_type_name;
        }

        public double getCoupon_free_money() {
            return coupon_free_money;
        }

        public void setCoupon_free_money(double coupon_free_money) {
            this.coupon_free_money = coupon_free_money;
        }

        public double getPromotion_free_money() {
            return promotion_free_money;
        }

        public void setPromotion_free_money(double promotion_free_money) {
            this.promotion_free_money = promotion_free_money;
        }

        public double getTotal_free_money() {
            return total_free_money;
        }

        public void setTotal_free_money(double total_free_money) {
            this.total_free_money = total_free_money;
        }

        public double getPay_money() {
            return pay_money;
        }

        public void setPay_money(double pay_money) {
            this.pay_money = pay_money;
        }

        public String getPay_time() {
            return pay_time;
        }

        public void setPay_time(String pay_time) {
            this.pay_time = pay_time;
        }

        public String getCreated_time() {
            return created_time;
        }

        public void setCreated_time(String created_time) {
            this.created_time = created_time;
        }

        public List<OrderGoodsBean> getOrder_goods() {
            return order_goods;
        }

        public void setOrder_goods(List<OrderGoodsBean> order_goods) {
            this.order_goods = order_goods;
        }

        public static class AddressBean implements Serializable{
            /**
             * address_id : 88
             * consignee : xcd
             * phone : 18205275181
             * province_id : 9
             * city_id : 27
             * county_id : 48
             * street : 774
             * is_default : 0
             * province_name : 上海市
             * city_name : 市辖区
             * county_name : 黄浦区
             */

            private int address_id;
            private String consignee;
            private String phone;
            private int province_id;
            private int city_id;
            private int county_id;
            private String street;
            private int is_default;
            private String province_name;
            private String city_name;
            private String county_name;

            public int getAddress_id() {
                return address_id;
            }

            public void setAddress_id(int address_id) {
                this.address_id = address_id;
            }

            public String getConsignee() {
                return consignee;
            }

            public void setConsignee(String consignee) {
                this.consignee = consignee;
            }

            public String getPhone() {
                return phone;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            public int getProvince_id() {
                return province_id;
            }

            public void setProvince_id(int province_id) {
                this.province_id = province_id;
            }

            public int getCity_id() {
                return city_id;
            }

            public void setCity_id(int city_id) {
                this.city_id = city_id;
            }

            public int getCounty_id() {
                return county_id;
            }

            public void setCounty_id(int county_id) {
                this.county_id = county_id;
            }

            public String getStreet() {
                return street;
            }

            public void setStreet(String street) {
                this.street = street;
            }

            public int getIs_default() {
                return is_default;
            }

            public void setIs_default(int is_default) {
                this.is_default = is_default;
            }

            public String getProvince_name() {
                return province_name;
            }

            public void setProvince_name(String province_name) {
                this.province_name = province_name;
            }

            public String getCity_name() {
                return city_name;
            }

            public void setCity_name(String city_name) {
                this.city_name = city_name;
            }

            public String getCounty_name() {
                return county_name;
            }

            public void setCounty_name(String county_name) {
                this.county_name = county_name;
            }
        }

        public static class MerchantBean implements Serializable{
            /**
             * merchant_id : 56
             * thumb : http://oyu6ee76y.bkt.clouddn.com/590cf27b1b0426da164a5a1782ed776c.jpg
             * name : 安卓一级02
             */

            private int merchant_id;
            private String thumb;
            private String name;

            public int getMerchant_id() {
                return merchant_id;
            }

            public void setMerchant_id(int merchant_id) {
                this.merchant_id = merchant_id;
            }

            public String getThumb() {
                return thumb;
            }

            public void setThumb(String thumb) {
                this.thumb = thumb;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }
        }

        public static class OrderGoodsBean implements Serializable{
            /**
             * commented : 0
             * order_goods_id : 590
             * goods_id : 41
             * quantity : 2
             * price : 0.01
             * goods_name : 安卓一级其他商品1
             * goods_pic : http://oyu6ee76y.bkt.clouddn.com/d344d80afee3f886c5920df89c637e4b.jpg
             * total_money : 0.02
             */

            private int commented;
            private int order_goods_id;
            private int goods_id;
            private int quantity;
            private double price;
            private String goods_name;
            private String goods_pic;
            private double total_money;

            public int getCommented() {
                return commented;
            }

            public void setCommented(int commented) {
                this.commented = commented;
            }

            public int getOrder_goods_id() {
                return order_goods_id;
            }

            public void setOrder_goods_id(int order_goods_id) {
                this.order_goods_id = order_goods_id;
            }

            public int getGoods_id() {
                return goods_id;
            }

            public void setGoods_id(int goods_id) {
                this.goods_id = goods_id;
            }

            public int getQuantity() {
                return quantity;
            }

            public void setQuantity(int quantity) {
                this.quantity = quantity;
            }

            public double getPrice() {
                return price;
            }

            public void setPrice(double price) {
                this.price = price;
            }

            public String getGoods_name() {
                return goods_name;
            }

            public void setGoods_name(String goods_name) {
                this.goods_name = goods_name;
            }

            public String getGoods_pic() {
                return goods_pic;
            }

            public void setGoods_pic(String goods_pic) {
                this.goods_pic = goods_pic;
            }

            public double getTotal_money() {
                return total_money;
            }

            public void setTotal_money(double total_money) {
                this.total_money = total_money;
            }
        }

        public static class RemittanceBeen implements Serializable{

            /**
             * order : {"id":104,"order_sn":"20180120115644502370","goods_count":10,"created_time":"2018-01-20 11:56:44"}
             * agent : {"id":31,"username":"user1801081953244091","avatar":"http://oyu6ee76y.bkt.clouddn.com/1e12d757ad174134905655a3683ee9b2.png","nickname":"user1801081953244091","realname":""}
             * remittance_id : 33
             * status : 1
             * order_id : 104
             * pic : http://oyu6ee76y.bkt.clouddn.com/9aae010a2fe76ef4bee2280c8792daa5.jpg
             * reason :
             */

            private OrderBeanM order;
            private AgentBean agent;
            private int remittance_id;
            private int status;
            private int order_id;
            private String pic;
            private String reason;

            public OrderBeanM getOrder() {
                return order;
            }

            public void setOrder(OrderBeanM order) {
                this.order = order;
            }

            public AgentBean getAgent() {
                return agent;
            }

            public void setAgent(AgentBean agent) {
                this.agent = agent;
            }

            public int getRemittance_id() {
                return remittance_id;
            }

            public void setRemittance_id(int remittance_id) {
                this.remittance_id = remittance_id;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public int getOrder_id() {
                return order_id;
            }

            public void setOrder_id(int order_id) {
                this.order_id = order_id;
            }

            public String getPic() {
                return pic;
            }

            public void setPic(String pic) {
                this.pic = pic;
            }

            public String getReason() {
                return reason;
            }

            public void setReason(String reason) {
                this.reason = reason;
            }

            public static class OrderBeanM implements Serializable{
                /**
                 * id : 104
                 * order_sn : 20180120115644502370
                 * goods_count : 10
                 * created_time : 2018-01-20 11:56:44
                 */

                private int id;
                private String order_sn;
                private int goods_count;
                private String created_time;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getOrder_sn() {
                    return order_sn;
                }

                public void setOrder_sn(String order_sn) {
                    this.order_sn = order_sn;
                }

                public int getGoods_count() {
                    return goods_count;
                }

                public void setGoods_count(int goods_count) {
                    this.goods_count = goods_count;
                }

                public String getCreated_time() {
                    return created_time;
                }

                public void setCreated_time(String created_time) {
                    this.created_time = created_time;
                }
            }

            public static class AgentBean implements Serializable{
                /**
                 * id : 31
                 * username : user1801081953244091
                 * avatar : http://oyu6ee76y.bkt.clouddn.com/1e12d757ad174134905655a3683ee9b2.png
                 * nickname : user1801081953244091
                 * realname :
                 */

                private int id;
                private String username;
                private String avatar;
                private String nickname;
                private String realname;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getUsername() {
                    return username;
                }

                public void setUsername(String username) {
                    this.username = username;
                }

                public String getAvatar() {
                    return avatar;
                }

                public void setAvatar(String avatar) {
                    this.avatar = avatar;
                }

                public String getNickname() {
                    return nickname;
                }

                public void setNickname(String nickname) {
                    this.nickname = nickname;
                }

                public String getRealname() {
                    return realname;
                }

                public void setRealname(String realname) {
                    this.realname = realname;
                }
            }
        }

        public static class LoanBeen implements Serializable{

            /**
             * status : 1
             * merchant : {"merchant_id":8}
             * borrower : {"id":31,"username":"user1801081953244091","avatar":"http://oyu6ee76y.bkt.clouddn.com/1e12d757ad174134905655a3683ee9b2.png","nickname":"user1801081953244091","realname":""}
             * order : {"id":116,"order_sn":"20180122201638502382","goods_count":3}
             * id : 22
             * amount : 285.0
             * start_date : 2018-01-22
             * end_date : 2018-01-31
             */

            private int status;
            private MerchantBean merchant;
            private BorrowerBean borrower;
            private OrderBeanS order;
            private int id;
            private double amount;
            private String start_date;
            private String end_date;

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public MerchantBean getMerchant() {
                return merchant;
            }

            public void setMerchant(MerchantBean merchant) {
                this.merchant = merchant;
            }

            public BorrowerBean getBorrower() {
                return borrower;
            }

            public void setBorrower(BorrowerBean borrower) {
                this.borrower = borrower;
            }

            public OrderBeanS getOrder() {
                return order;
            }

            public void setOrder(OrderBeanS order) {
                this.order = order;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public double getAmount() {
                return amount;
            }

            public void setAmount(double amount) {
                this.amount = amount;
            }

            public String getStart_date() {
                return start_date;
            }

            public void setStart_date(String start_date) {
                this.start_date = start_date;
            }

            public String getEnd_date() {
                return end_date;
            }

            public void setEnd_date(String end_date) {
                this.end_date = end_date;
            }

            public static class MerchantBean implements Serializable{
                /**
                 * merchant_id : 8
                 */

                private int merchant_id;

                public int getMerchant_id() {
                    return merchant_id;
                }

                public void setMerchant_id(int merchant_id) {
                    this.merchant_id = merchant_id;
                }
            }

            public static class BorrowerBean implements Serializable{
                /**
                 * id : 31
                 * username : user1801081953244091
                 * avatar : http://oyu6ee76y.bkt.clouddn.com/1e12d757ad174134905655a3683ee9b2.png
                 * nickname : user1801081953244091
                 * realname :
                 */

                private int id;
                private String username;
                private String avatar;
                private String nickname;
                private String realname;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getUsername() {
                    return username;
                }

                public void setUsername(String username) {
                    this.username = username;
                }

                public String getAvatar() {
                    return avatar;
                }

                public void setAvatar(String avatar) {
                    this.avatar = avatar;
                }

                public String getNickname() {
                    return nickname;
                }

                public void setNickname(String nickname) {
                    this.nickname = nickname;
                }

                public String getRealname() {
                    return realname;
                }

                public void setRealname(String realname) {
                    this.realname = realname;
                }
            }

            public static class OrderBeanS implements Serializable{
                /**
                 * id : 116
                 * order_sn : 20180122201638502382
                 * goods_count : 3
                 */

                private int id;
                private String order_sn;
                private int goods_count;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getOrder_sn() {
                    return order_sn;
                }

                public void setOrder_sn(String order_sn) {
                    this.order_sn = order_sn;
                }

                public int getGoods_count() {
                    return goods_count;
                }

                public void setGoods_count(int goods_count) {
                    this.goods_count = goods_count;
                }
            }
        }
    }
}
